package com.infocollect.project.api.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.infocollect.project.api.entity.TappUserEntity;
import com.infocollect.project.api.vo.CurrentUserInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (TappUser)表数据库访问层
 *
 * @author makejava
 * @since 2019-12-25 10:32:31
 */
public interface TappUserMapper extends BaseMapper<TappUserEntity> {
    /**
     * 通过实体作为筛选条件查询
     *
     * @param tappUser 实例对象
     * @return 对象列表
     */
    List<TappUserEntity> queryAll(TappUserEntity tappUser);


    /**
     * 通过查询用户名称查询单条数据
     *
     * @param username 用户名称
     * @return 实例对象
     */
    CurrentUserInfoVO login(@Param("username") String username);
    /**
     * 根据用户名称和真实名称查询
     * @param workkey
     * @return
     */
    List<TappUserEntity> queryUsernameOrRealaname(String workkey);

}